package org.ellisande.grid.tags;

import javax.servlet.jsp.JspWriter;

import org.ellisande.grid.tags.support.TagBuilder;
import org.ellisande.tld.annotations.Info;
import org.ellisande.tld.annotations.Tag;

@Tag
@Info("Creates a grid row that spans 12 columns.")
public class RowTag extends AbstractTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3910399322210870648L;

	@Override
	public void startTag() throws Exception {
		TagBuilder tag = createTagBuilder("div");
		tag.addStyle("row-fluid");
		tag.addStyles(styles);
		JspWriter out = pageContext.getOut();
		out.println(tag.compileStartTag());
	}

	@Override
	public void endTag() throws Exception {
		TagBuilder tag = createTagBuilder("div");
		JspWriter out = pageContext.getOut();
		out.println(tag.compileEndTag());
	}

	public void release() {
		super.release();
	}
}
